import request from '@/utils/request'

// 查询生产运行报表列表
export function listProRunReports(params) {
  return request({
    url: '/operation/web/operationProRunReportForms/list',
    method: 'get',
    params
  })
}

// 获取生产运行报表详细信息
export function getProRunReportDetail(id) {
  return request({
    url: `/operation/web/operationProRunReportForms/${id}`,
    method: 'get'
  })
}

// 删除生产运行报表
export function deleteProRunReports(ids) {
  return request({
    url: `/operation/web/operationProRunReportForms/${ids}`,
    method: 'delete'
  })
}

// 数据补调
export function adjustReportData(data) {
  return request({
    url: '/operation/web/operationProRunReportForms/adjustment',
    method: 'post',
    data
  })
}

// 提交报表
export function commitReport(id) {
  return request({
    url: '/operation/web/operationProRunReportForms/commit',
    method: 'post',
    params: { id }
  })
}

// 审核报表
export function reviewReport(data) {
  return request({
    url: '/operation/web/operationProRunReportForms/audit',
    method: 'post',
    data
  })
}